package com.woniuxy01;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-07-18 9:40
 */
public class Test01 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入基数");
        int num = sc.nextInt();
        System.out.println("输入累加次数");
        int count = sc.nextInt();
        int sum = 0, temp = num;
        for (int i = 1; i <= count; i++) {
            sum+=temp;
            temp = temp * 10+num;
        }
        System.out.println(sum);
    }
}
